﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using HZ.MBSM.DBUtility;
using System.Text;

public partial class Bidder_CompanyInfo : System.Web.UI.Page, HZ.MBSM.BLL.IPageDescribe
{
    private Int64 AccountId;
    public string strTJZT;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (HZ.MBSM.BLL.Login.CheckAssert(this.UseAccountType))
        {

            HZ.MBSM.Model.Account _Account = (HZ.MBSM.Model.Account)Session["Account"];
            if (_Account != null)
            {
                AccountId = SysFun.ToLong(_Account.AccountId);
                if (!this.IsPostBack)
                {
                    labNoPass.Text = "";
                    labNoPass1.Text = "";
                    labNoPass1.Visible = false;
                    labNoPass.Visible = false;
                    labCheckTime.Visible = false;
                    butUpdate.Visible = false;
                    HZ.MBSM.DBUtility.Db db = new HZ.MBSM.DBUtility.Db(false);
                    Grove.ORM.ObjectOperator oo = db.GetObjectOperator();

                    HZ.MBSM.Model.Company Company = (HZ.MBSM.Model.Company)oo.Retrieve(typeof(HZ.MBSM.Model.Company), AccountId);
                    HZ.MBSM.Model.Area Area = (HZ.MBSM.Model.Area)oo.Retrieve(typeof(HZ.MBSM.Model.Area), Company.AreaId);



                    if (Area != null)
                        this.Label1.Text = "<input  type='text' readonly name='AreaName'  NotNull='所属地区' class='txtbox_100' value='" + Area.AreaName + "' /><input type='text' name='AreaId' style='display:none; width: 64px;' value='" + Company.AreaId + "'>";
                    else
                        this.Label1.Text = "<input  type='text' readonly name='AreaName'  NotNull='所属地区' class='txtbox_100' /><input type='text' name='AreaId' style='display:none; width: 64px;' >";
                    txtKhyh.Text = SysFun.ToTrim(Company.Khyh);
                    txtKhzh.Text = SysFun.ToTrim(Company.Khzh);
                    txtKmlxr.Text = SysFun.ToTrim(Company.Kmlxr);
                    txtKmlxdh.Text = SysFun.ToTrim(Company.Kmlxdh);

                    txtAccountId.Text = SysFun.ToTrim(Company.AccountId);
                    txtAccountId_SH.Text = SysFun.ToTrim(Company.AccountId_SH);
                    txtUserCode.Text = SysFun.ToTrim(Company.UserCode);
                    txtUserCode.ReadOnly = true;
                    if (SysFun.ToTrim(Company.SOS) != null)
                    {
                        sostext.Text = SysFun.ToTrim(Company.SOS);
                    }
                    Address.Text = SysFun.ToTrim(Company.Address);
                    RegistAddress.Text = SysFun.ToTrim(Company.RegistAddress);
                    CompanyName.Text = SysFun.ToTrim(Company.CompanyName);
                  //  CompanyName.ReadOnly = true;
                    PostCode.Text = SysFun.ToTrim(Company.PostCode);
                    Fax.Text = SysFun.ToTrim(Company.Fax);
                    Telepone.Text = SysFun.ToTrim(Company.Telepone);
                    Lawer.Text = SysFun.ToTrim(Company.Lawer);
                    IDcard.Text = SysFun.ToTrim(Company.IDcard);

                    Fund.Text = SysFun.ToTrim(Company.Fund.ToString()) == "0" ? "" : SysFun.ToTrim(Company.Fund.ToString());

                    LastIncome.Text = SysFun.ToTrim(Company.LastIncome.ToString()) == "0" ? "" : SysFun.ToTrim(Company.LastIncome.ToString());
                    if (Company.RegistDate > Convert.ToDateTime("1900-1-1"))
                        RegistDate.Text = Company.RegistDate.ToString();
                    RegistDate.Visible = false;
                    Email.Text = SysFun.ToTrim(Company.Email);
                    switch (_Account.Sort)
                    {
                        case "0":
                            sort.Text = "生产企业";
                            break;
                        case "1":
                            sort.Text = "经营企业";
                            break;
                        case "2":
                            sort.Text = "一级代理商";
                            break;
                    }
                    Introduction.Text = SysFun.ToTrim(Company.Introduction);
                    if (Company.CodeDate > Convert.ToDateTime("1900-1-1"))
                        txtCodeDate.Text = Company.CodeDate.ToString();
                    txtNetAddress.Text = SysFun.ToTrim(Company.NetAddress);
                    txtCodeId.Text = SysFun.ToTrim(Company.CodeId);
                    txtFixFund.Text = SysFun.ToTrim(Company.FixFund) == "0" ? "" : SysFun.ToTrim(Company.FixFund);


                    txtPermission.Text = SysFun.ToTrim(Company.Permission);
                    if (Company.PermissionDate > Convert.ToDateTime("1900-1-1"))
                        txtPermissionDate.Text = Company.PermissionDate.ToString();

                    //企业信用证
                    if (Company.IsLC == "1")
                    {
                        chkIsLC.Checked = true;
                        if (Company.LCDate > Convert.ToDateTime("1900-1-1"))
                            txtLCDate.Text = Company.LCDate.ToString();

                        txtLCPermission.Text = SysFun.ToTrim(Company.LCPermission);

                        rdoLcLevel.SelectedValue = Company.LcLevel;
                    }
                    else
                    {
                        chkIsLC.Checked = false;
                    }

                    hidCheckStatus.Value = Company.CheckStatus;

                    txtTotalFund.Text = SysFun.ToTrim(Company.TotalFund) == "0" ? "" : SysFun.ToTrim(Company.TotalFund);

                    txtBusinessScope.Text = SysFun.ToTrim(Company.BusinessScope);
                    txtMemo1.Text = SysFun.ToTrim(Company.memo1);
                    txtWarrant.Text = SysFun.ToTrim(Company.Warrant);
                    txtWarrantDate.Text = SysFun.ToTrim(Company.WarrantDate);
                    if (SysFun.ToTrim(Company.WarrantDate) == "1900-1-1 0:00:00")
                    {
                        txtWarrantDate.Text = "";
                    }
                    txtMemo5.Text = SysFun.ToTrim(Company.memo5);
                    this.mobilephone.Text = SysFun.ToTrim(Company.memo10);
                    labCheckTime.Text = Company.CheckTime.ToString();
                    switch (SysFun.ToTrim(Company.memo2))
                    {
                        case "":
                            strTJZT = "未提交";
                            break;
                        case "0":
                            strTJZT = "已保存未提交";
                            break;
                        case "1":
                            strTJZT = "已提交待审核";
                            break;
                        case "2":
                            strTJZT = "已修改待审核";
                            break;
                        default:
                            strTJZT = "未知";
                            break;

                    }
                    if (SysFun.ToTrim(Company.CheckStatus) == "0" || Company.CheckStatus == null)
                    {
                        if (Company.CompanyUpdateStatus == "1")
                        {
                            BtnSave.Visible = true;
                            Button2.Visible = true;

                        }
                        else
                        {
                            BtnSave.Visible = false;
                            Button2.Visible = false;
                            lbl2.Visible = false;
                        }
                        Status.Text = "未审核";
                    }
                    else if (SysFun.ToTrim(Company.CheckStatus) == "1")
                    {
                        panel1.Enabled = false;
                        lbl2.Visible = false;
                        lbl1.Visible = false;
                        Button2.Visible = false;
                        BtnSave.Visible = false;
                        Status.Text = "审核通过";
                       // strTJZT = "已修改";

                    }
                    else if (SysFun.ToTrim(Company.CheckStatus) == "2")
                    {
                        Button2.Visible = false;
                        lbl2.Visible = false;
                        BtnSave.Visible = false;
                        Status.Text = "审核不通过";
                        labNoPass1.Text = "审核不通过原因：";
                        labNoPass1.Visible = true;
                        labNoPass.Text = Company.memo6;
                        labNoPass.Visible = true;
                        labCheckTime.Visible = true;
                         
                        butUpdate.Visible = true;
                       // this.Page.ClientScript.RegisterStartupScript(this.GetType(), "openwin", "<script>GB_showCenter('系统提示','../../bidder/ComNoPass.aspx',400,600)</script>");
                      
                    }
                    else if (SysFun.ToTrim(Company.CheckStatus) == "3")
                    {
                       
                        Status.Text = "资料一致";
                        panel1.Enabled = false;
                        lbl2.Visible = false;
                        lbl1.Visible = false;
                        Button2.Visible = false;
                        BtnSave.Visible = false;
                       strTJZT = "";

                    }

                    System.Text.StringBuilder strHtml = new System.Text.StringBuilder();
                    if (SysFun.ToTrim(Company.Sort) == "1" || SysFun.ToTrim(Company.Sort) == "2")
                    {
                        strHtml.Append("<tr>");
                        strHtml.Append("<td class='td_left_20'>是否有GSP证书：</td>");
                        strHtml.Append("<td class='td_right_80' colspan='3' style='background-color: White;'>");
                        if (Company.IsGsp == "1")
                        {
                            strHtml.Append("<input type='checkbox'  name='chkIsGsp'checked   value='1' />是");
                        }
                        else
                        {
                            strHtml.Append("<input type='checkbox' name='chkIsGsp'   value='1' />是");
                        }


                        strHtml.Append("<table  width='98%'border='0' align='center' cellpadding='2' cellspacing='1' class='list'>");
                        strHtml.Append("<tr>");
                        strHtml.Append("<td class='td_left_20'>GSP证书：</td>");

                        strHtml.Append("<td class='td_right_30'><input type='text' name='txtGspCode' value='" + SysFun.ToTrim(Company.GspCode) + "' class='txtbox_150' InvertedComma='GSP或GMP证书'></td>");
                        strHtml.Append("<td class='td_left_20'>GSP有效期：</td>");
                        strHtml.Append("<td class='td_right_30'><input type='text' name='txtGspDate' value='" + SysFun.ToTrim(Company.GspDate) + "' class='txtbox_150' onclick='javascript:fPopCalendar(this,this);'dataType='Date' format='ymd' require='true' DateTimeOnly='GSP或GMP有效期'></td>");
                        strHtml.Append("</tr><tr>");
                        strHtml.Append("<td class='td_left_20'>GSP认证范围</td>");
                        strHtml.Append("<td class='td_right_30'><input type='text' name='txtGspRange' value='" + SysFun.ToTrim(Company.GspRange) + "' class='txtbox_150' InvertedComma='GSP或GMP认证范围'></td>");
                        strHtml.Append("<td class='td_left_20'>GSP发证时间：</td>");
                        strHtml.Append("<td class='td_right_30'><input type='text' name='txtGspPermitDate'  value='" + SysFun.ToTrim(Company.GspPermitDate) + "' class='txtbox_150' onclick='javascript:fPopCalendar(this,this);'dataType='Date' format='ymd' require='true' DateTimeOnly='GSP或GMP发证时间'></td>");
                        strHtml.Append("</tr></table></td></tr>");

                    }
                    else
                    {
                        strHtml.Append("<tr><td class='td_left_20'>GMP信息：</td><td class='td_right_80' colspan=3 style='background-color: White;'><a href='../Company/CompanyGMPList.aspx'>GMP信息(请点击此处输入GMP信息)</a><span style='color: #ff6666'>(*)</span></td></tr>");
                    }

                    labGMP.Text = strHtml.ToString();

                    oo.Dispose();
                    db.Close();
                }
            }
            else
            {
                Response.Write("<script>alert('您还没有登录，请登录后再修改！！');location.href='../HomePage/Default.aspx'</script>");

            }
        }

    }
    protected void BtnSave_Click(object sender, EventArgs e)
    {
        if (CompanySave("0") == 1)
        {
            Response.Write("<script>alert('保存成功！！！');location.href='../Company/CompanyInfo.aspx';</script>");
        }
        else
        {
            Response.Write("<script>alert('保存失败！！！');</script>");
        }

    }
    protected void Button2_Click(object sender, EventArgs e)
    {
        if (CompanySave("1") == 1)
        {
            Response.Write("<script>alert('提交成功！！！');location.href='../Company/CompanyInfo.aspx';</script>");
        }
        else
        {
            Response.Write("<script>alert('提交失败！！！');</script>");
        }

    }
    protected void Button3_Click(object sender, EventArgs e)
    {
        if (CompanySave("2") == 1)
        {
            Response.Write("<script>alert('保存成功！！！');location.href='../Company/CompanyInfo.aspx';</script>");
        }
        else
        {
            Response.Write("<script>alert('保存失败！！！');</script>");
        }

    }
    public int CompanySave(string strMemo2)
    {
        int _intSc = 0;
        Int64 AccountId_SH;
        HZ.MBSM.Model.Account _Account = (HZ.MBSM.Model.Account)Session["Account"];
        if (_Account != null)
        {
            AccountId_SH = SysFun.ToLong(_Account.AccountId);
            AccountId = SysFun.ToLong(_Account.AccountId);

            HZ.MBSM.Model.Company Company = new HZ.MBSM.Model.Company();
            if (Company != null)
            {
                Company.Khyh = SysFun.ToTrim(txtKhyh.Text);
                Company.Khzh = SysFun.ToTrim(txtKhzh.Text);
                Company.Kmlxr = SysFun.ToTrim(txtKmlxr.Text);
                Company.Kmlxdh = SysFun.ToTrim(txtKmlxdh.Text);
                Company.CompanyName = SysFun.ToTrim(CompanyName.Text);
                Company.SOS = sostext.Text.Trim();
                Company.AccountId = AccountId;
                Company.memo5 = SysFun.ToTrim(txtMemo5.Text);
                Company.memo10 = SysFun.ToTrim(this.mobilephone.Text);
                Company.Sort = _Account.Sort;
                Company.TotalFund = SysFun.ToDouble(txtTotalFund.Text);
                Company.Warrant = SysFun.ToTrim(txtWarrant.Text);
                Company.WarrantDate = SysFun.ToDateTime(txtWarrantDate.Text);
                if (Company.WarrantDate == Convert.ToDateTime("1900-1-1"))
                {
                    Label2.Text += "\"许可证到期时间\"输入错误，请重新输入；<br>";
                    txtWarrantDate.Focus();
                }
                Company.BusinessScope = SysFun.ToTrim(txtBusinessScope.Text);
                Company.AreaId = SysFun.ToInt(Request.Form["AreaId"]);
                if (SysFun.ToTrim(RegistDate.Text.ToString()) != "")
                    Company.RegistDate = SysFun.ToDateTime(RegistDate.Text);
                else
                    Company.RegistDate = System.DateTime.Now;

                Company.RegistAddress = RegistAddress.Text;
                Company.Address = Address.Text;
                Company.PostCode = SysFun.ToTrim(PostCode.Text);
                Company.Telepone = Telepone.Text;
                Company.Fax = Fax.Text;
                Company.Lawer = Lawer.Text;
                Company.IDcard = IDcard.Text.ToString();
                Company.Fund = double.Parse(SysFun.ToDec(Fund.Text).ToString());
                Company.LastIncome = double.Parse(SysFun.ToDec(LastIncome.Text).ToString());
                Company.Email = Email.Text;
                Company.NetAddress = SysFun.ToTrim(txtNetAddress.Text);
                Company.CodeId = SysFun.ToTrim(txtCodeId.Text);
                Company.CodeDate = SysFun.ToDateTime(txtCodeDate.Text);
                Company.Permission = SysFun.ToTrim(txtPermission.Text);
                Company.PermissionDate = SysFun.ToDateTime(txtPermissionDate.Text);
                if (Company.PermissionDate == Convert.ToDateTime("1900-1-1"))
                {
                    Label2.Text += "\"营业执照有效期\"输入错误，请重新输入；<br>";
                    txtPermissionDate.Focus();
                }

                //企业信用证
                Company.IsLC = SysFun.ToTrim(SysFun.ToInt(chkIsLC.Checked));
                if (chkIsLC.Checked)
                {
                    Company.LcLevel = SysFun.ToTrim(rdoLcLevel.SelectedValue);
                    Company.LCPermission = SysFun.ToTrim(txtLCPermission.Text);
                    if (txtLCDate.Text != "")
                        Company.LCDate = SysFun.ToDateTime(txtLCDate.Text);
                    else
                        Company.LCDate = Convert.ToDateTime("1900-1-1");
                }
                else
                {
                    Company.LcLevel = "";
                    Company.LCPermission = "";
                    Company.LCDate = Convert.ToDateTime("1900-1-1");
                }

                Company.FixFund = SysFun.ToDouble(txtFixFund.Text);
                Company.Introduction = Introduction.Text;
                Company.memo1 = SysFun.ToTrim(txtMemo1.Text);

                //GSP
                if (Request.Form["chkIsGsp"] != null)
                {
                    Company.IsGsp = "1";
                    Company.GspCode = SysFun.ToTrim(Request.Form["txtGspCode"]);
                    if (Request.Form["txtGspDate"].ToString() != "")
                        Company.GspDate = SysFun.ToDateTime(Request.Form["txtGspDate"]);
                    else
                        Company.GspDate = Convert.ToDateTime("1900-1-1");
                    Company.GspRange = SysFun.ToTrim(Request.Form["txtGspRange"]);
                    if (Request.Form["txtGspPermitDate"].ToString() != "")
                        Company.GspPermitDate = SysFun.ToDateTime(Request.Form["txtGspPermitDate"]);
                    else
                        Company.GspPermitDate = Convert.ToDateTime("1900-1-1");
                }
                else
                {
                    Company.IsGsp = "0";
                    Company.GspCode = "";
                    Company.GspDate = Convert.ToDateTime("1900-1-1");
                    Company.GspRange = "";
                    Company.GspPermitDate = Convert.ToDateTime("1900-1-1");
                }

                Company.memo2 = strMemo2;

                if (SysFun.ToTrim(txtAccountId_SH.Text) != "")
                {
                    Company.AccountId_SH = SysFun.ToLong(txtAccountId_SH.Text);
                }
                Company.CheckStatus = hidCheckStatus.Value;


                Company.CheckTime = SysFun.ToDateTime(labCheckTime.Text);

                if (HZ.MBSM.BLL.Company.UpdateByCompany(Company))
                {
                    HZ.MBSM.BLL.LogManage.RecordLoginDetail(_Account.AccountName, Request.UserHostAddress, "修改", "Company", _Account.AccountId.ToString() + _Account.DWName.ToString(), "../Bidder/CompanyInfo.aspx");
                    _intSc = 1;
                }



            }



        }

        else
        {
            Response.Write("<script language=JavaScript>alert('您无权审核企业信息！！！');</script>");
        }
        return _intSc;
    }
    //导出基本信息
    protected void BtnExcel_Click(object sender, EventArgs e)
    {
        HZ.MBSM.Model.Company Company = new HZ.MBSM.Model.Company();
        HZ.MBSM.Model.Account _Account = (HZ.MBSM.Model.Account)Session["Account"];
        Company.AccountId = _Account.AccountId; ;
        DataTable dt = HZ.MBSM.BLL.Company.GetCompany(Company);
        StringBuilder sbXml = new StringBuilder();
        sbXml.Append("<Table>");
        foreach (DataRow row in dt.Rows)
        {
            sbXml.Append("<tr><td style='width: 250px;height:50px;'>&nbsp;</td><td style='width: 450px;height:50px;text-align: right;'>识别码：" + row["识别码"] + "</td></tr>");
            sbXml.Append("<tr><td  colspan='2'  style='text-align:center;font-size:22px; font-weight:bolder;height:50px'>企 业 基 本 资 料</td></tr>");
            sbXml.Append("<tr><td style='width: 250px;height:50px;'>&nbsp;</td><td style='width: 450px;height:50px;'>&nbsp;</td></tr>");
            sbXml.Append("<tr><td style='font-weight: bold;width: 250px;text-align: right; padding: 0px 5px 0px 5px;font-size:20px;height:50px'>公司名称：</td><td style='width: 450px;text-align: left;padding: 0px 3px 0px 3px;font-size:16px'>" + row["公司名称"] + "</td></tr>");
            sbXml.Append("<tr><td style='font-weight: bold;width: 250px;text-align: right; padding: 0px 5px 0px 5px;font-size:20px;height:50px'>法人代表姓名：</td><td style='width: 450px;text-align: left;padding: 0px 3px 0px 3px;font-size:16px'>" + row["法人代表姓名"] + "</td></tr>");
            sbXml.Append("<tr><td style='font-weight: bold;width: 250px;text-align: right; padding: 0px 5px 0px 5px;font-size:20px;height:50px'>营业执照：</td><td style='width: 450px;text-align: left;padding: 0px 3px 0px 3px;font-size:16px;vnd.ms-excel.numberformat:@'>" + row["营业执照"] + "</td></tr>");
            sbXml.Append("<tr><td style='font-weight: bold;width: 250px;text-align: right; padding: 0px 5px 0px 5px;font-size:20px;height:50px'>(生产或经营)许可证：</td><td style='width: 450px;text-align: left;padding: 0px 3px 0px 3px;font-size:16px;vnd.ms-excel.numberformat:@'>" + row["(生产或经营)许可证"] + "</td></tr>");
            sbXml.Append("<tr><td style='font-weight: bold;width: 250px;text-align: right; padding: 0px 5px 0px 5px;font-size:20px;height:50px'>注册地址：</td><td style='width: 450px;text-align: left;padding: 0px 3px 0px 3px;font-size:16px'>" + row["注册地址"] + "</td></tr>");
            sbXml.Append("<tr><td style='font-weight: bold;width: 250px;text-align: right; padding: 0px 5px 0px 5px;font-size:20px;height:50px'>所属地区：</td><td style='width: 450px;text-align: left;padding: 0px 3px 0px 3px;font-size:16px'>" + row["所属地区"] + "</td></tr>");
            sbXml.Append("<tr><td style='font-weight: bold;width: 250px;text-align: right; padding: 0px 5px 0px 5px;font-size:20px;height:50px'>联系地址：</td><td style='width: 450px;text-align: left;padding: 0px 3px 0px 3px;font-size:16px'>" + row["联系地址"] + "</td></tr>");
            sbXml.Append("<tr><td style='font-weight: bold;width: 250px;text-align: right; padding: 0px 5px 0px 5px;font-size:20px;height:50px'>企业联系电话：</td><td style='width: 450px;text-align: left;padding: 0px 3px 0px 3px;font-size:16px;vnd.ms-excel.numberformat:@'>" + row["企业联系电话"] + "</td></tr>");
            sbXml.Append("<tr><td style='font-weight: bold;width: 250px;text-align: right; padding: 0px 5px 0px 5px;font-size:20px;height:50px'>企业联系人：</td><td style='width: 450px;text-align: left;padding: 0px 3px 0px 3px;font-size:16px'>" + row["企业联系人"] + "</td></tr>");
            sbXml.Append("<tr><td style='font-weight: bold;width: 250px;text-align: right; padding: 0px 5px 0px 5px;font-size:20px;height:50px'>手机：</td><td style='width: 450px;text-align: left;padding: 0px 3px 0px 3px;font-size:16px;vnd.ms-excel.numberformat:@'>" + row["手机"] + "</td ></tr>");
            sbXml.Append("<tr><td style='font-weight: bold;width: 250px;text-align: right; padding: 0px 5px 0px 5px;font-size:20px;height:50px'>企业传真：</td><td style='width: 450px;text-align: left;padding: 0px 3px 0px 3px;font-size:16px;vnd.ms-excel.numberformat:@'>" + row["企业传真"] + "</td></tr>");
            sbXml.Append("<tr><td style='font-weight: bold;width: 250px;text-align: right; padding: 0px 5px 0px 5px;font-size:20px;height:50px'>企业开户银行：</td><td style='width: 450px;text-align: left;padding: 0px 3px 0px 3px;font-size:16px'>" + row["企业开户银行"] + "</td></tr>");
            sbXml.Append("<tr><td style='font-weight: bold;width: 250px;text-align: right; padding: 0px 5px 0px 5px;font-size:20px;height:50px'>企业开户帐号：</td><td style='width: 450px;text-align: left;padding: 0px 3px 0px 3px;font-size:16px;vnd.ms-excel.numberformat:@'>" + row["企业开户帐号"] + "</td></tr>");
            sbXml.Append("<tr><td style='font-weight: bold;width: 250px;text-align: right; padding: 0px 5px 0px 5px;font-size:20px;height:50px'>昆明办事处电话：</td><td style='width: 450px;text-align: left;padding: 0px 3px 0px 3px;font-size:16px;vnd.ms-excel.numberformat:@'>" + row["昆明办事处电话"] + "</td></tr>");
            sbXml.Append("<tr><td style='font-weight: bold;width: 250px;text-align: right; padding: 0px 5px 0px 5px;font-size:20px;height:50px'>昆明办事处联系人：</td><td style='width: 450px;text-align: left;padding: 0px 3px 0px 3px;font-size:16px'>" + row["昆明办事处联系人"] + "</td></tr>");
        }
        sbXml.Append("</Table>");
        Response.Write(sbXml.ToString());
        Response.ContentType = "application/octet-stream";
        Response.AddHeader("Content-Disposition", "attachment; filename=\"CompanyInfo.xls\"");
        Response.End();
    }

    #region IPageDescribe 成员

    public string Name
    {
        get { return "企业信息"; }
    }

    public string Describe
    {
        get { return ""; }
    }

    public string ParentName
    {
        get { return "企业信息"; }
    }

    public System.Collections.Generic.List<HZ.MBSM.DAL.AccountType> UseAccountType
    {
        get
        {
            System.Collections.Generic.List<HZ.MBSM.DAL.AccountType> _AccountType = new System.Collections.Generic.List<HZ.MBSM.DAL.AccountType>();
            _AccountType.Add(HZ.MBSM.DAL.AccountType.enumCompany);
            return _AccountType;
        }
    }
    #endregion



}


